package com.mercycrazy.recruit.constant;

/**
 * 通用的常量定义
 *
 * @author <a href="mailto:1443424326@qq.com">mercycrazy</a>
 * @since 2023-01-13
 */
public class CommonConstant {

    public static final String GATEWAY_SERVICE_ID = "boss-recruit-gateway";

    /** JWT 默认的超时时间, 1天 */
    public static final int DEFAULT_JWT_EXPIRE_TIME = 60 * 60 * 24;

    /** JWT 默认的 secret */
    public static final String DEFAULT_JWT_SECRET = "dasdasd$@dsaadasdasdasd";

    /** 前端 header 中上传 JWT 的 key */
    public static final String JWT_USER_INFO_KEY = "headerUserToken";

    /** APP 端 JWT Prefix */
    public static final String APP_JWT_PREFIX = "app";

    /** 企业 SAAS 端 JWT Prefix */
    public static final String SAAS_JWT_PREFIX = "saas";

    /** 运营管理 Admin 端 JWT Prefix */
    public static final String ADMIN_JWT_PREFIX = "admin";

    /** 用户登录平台 */
    public static final String LOGIN_PLATFORM = "login_platform";
}
